﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using Handrise.Mobile.BasicModal.DataLayer;

namespace Handrise.CDCable.Mobile.Business
{
    [Serializable]
    [EntityMapping(TableName = "Device")]
    public class Device
    {
        /// <summary>
        /// 设备ID
        /// </summary>
        [EntityMapping(IsKey = true, ColumnName = "DeviceID")]
        public string DeviceID { get; set; }

        /// <summary>
        /// 设备名称
        /// </summary>
        [EntityMapping(ColumnName = "Name")]
        public string Name { get; set; }

        /// <summary>
        /// 设备类型
        /// </summary>
        [EntityMapping(ColumnName = "DeviceType")]
        public string DeviceType { get; set; }

        /// <summary>
        /// 设备编码
        /// </summary>
        [EntityMapping(ColumnName = "Code")]
        public string Code { get; set; }

        /// <summary>
        /// 经度
        /// </summary>
        [EntityMapping(ColumnName = "Longitude")]
        public double? Longitude { get; set; }

        /// <summary>
        /// 纬度
        /// </summary>
        [EntityMapping(ColumnName = "Latitude")]
        public double? Latitude { get; set; }

        /// <summary>
        /// 父设备ID 
        /// </summary>
        [EntityMapping(ColumnName = "ParentDeviceID")]
        public string ParentDeviceID { get; set; }

        /// <summary>
        /// 父设备名称
        /// </summary>
        [EntityMapping(ColumnName = "ParentDeviceName")]
        public string ParentDeviceName { get; set; }

        /// <summary>
        /// 电压等级
        /// </summary>
        [EntityMapping(ColumnName = "VoltageLevel")]
        public string VoltageLevel { get; set; }

        /// <summary>
        /// 设备级别
        /// </summary>
        [EntityMapping(ColumnName = "DeviceLevel")]
        public string DeviceLevel { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [EntityMapping(ColumnName = "Remark")]
        public string Remark { get; set; }
    }
}
